package com.wkbb.sports.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 大数据中心 统计
 */
@Data
public class BCDTDto implements Serializable {

    private SchoolAttendRateDto schoolAttendRateDto;
    private DetectStatisticsDto detectStatisticsDto;
    private PhysicalAnalysisDto physicalAnalysisDto;
    private List<TrainGradeCount> trainGradeCounts;

    public void format() {
        if (schoolAttendRateDto == null) schoolAttendRateDto = new SchoolAttendRateDto();
        schoolAttendRateDto.format();
        if (detectStatisticsDto == null) detectStatisticsDto = new DetectStatisticsDto();
        detectStatisticsDto.format();
        if (physicalAnalysisDto == null) physicalAnalysisDto = new PhysicalAnalysisDto();
        physicalAnalysisDto.format();
    }

}